<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class KnowledgeCategory extends Model
{
    protected $fillable = ['name', 'status'];

    // 关联知识
    public function knowledges()
    {
        return $this->hasMany(Knowledge::class, 'category_id');
    }
}
